package cn.openea.perpartner.meily.web.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.util.List;

/**
 * @author rains
 * @since 2023-07-31 17:57
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PersonalInfoVo {

    private PersonalInfoSearchVo searchVo;

    private List<String> ids;

    @Max(1)
    @Min(0)
    private Short batchType = 0;

    public boolean byIds() {
        return this.batchType == 0;
    }
}
